package com.jmb.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName t_user_login_log
 */
@TableName(value ="t_user_login_log")
@Data
public class UserLoginLog extends BaseEntity {

    /**
     * user_id
     */
    @Schema(description = "用户编号")
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * username
     */
    @Schema(description = "用户名")
    @TableField(value = "user_name")
    private String userName;

    /**
     * ip地址
     */
    @Schema(description = "ip地址")
    @TableField(value = "ip")
    private String ip;

    /**
     * 登录时间
     */
    @Schema(description = "登录时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "login_time")
    private Date loginTime;
}